<!DOCTYPE html>
<%@ include file="/WEB-INF/include.jsp"%>
<html>
<head>
<META http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>Upload Example</title>
<link rel="stylesheet" href="../css/config.css" type="text/css"></link>
<script>
	function Validate() {
		var image = document.getElementById("image").value;
		if (image == '') {
			alert("Please enter Image Path");
			document.getElementById("image").focus();
			return false;
		}
	}
</script>
</head>
<body>
	<jsp:include page="/WEB-INF/views/menu.jsp" />
	<form:form modelAttribute="uploadItem" name="frm" method="post"
		enctype="multipart/form-data" onSubmit="return Validate();">
		<fieldset>
			<legend>Upload File</legend>
			<table>
				<tr>
					<td><form:label for="fileData" path="fileData">Archivo</form:label><br />
					</td>
					<td><form:input path="fileData" id="image" type="file" /></td>
				</tr>
				<tr>
					<td><br /></td>
					<td><input type="submit" value="Enviar" id="Upload"/></td>
				</tr>
			</table>
		</fieldset>
	</form:form>
</body>
</html>